package jsyf.oa.facade.system;

import com.alibaba.dubbo.rpc.protocol.rest.support.ContentType;
import com.alibaba.fastjson.JSONObject;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

/**
 * Created by Lenovo on 2017/12/9.
 */
@Path("/provinceService")
@Consumes({MediaType.APPLICATION_JSON, MediaType.TEXT_XML})
@Produces({ContentType.APPLICATION_JSON_UTF_8, ContentType.TEXT_XML_UTF_8})
public interface ProvinceFacade {
    @Path("/getTreeNodes")
    List<JSONObject> getTreeNodes();

    @Path("/getProvinceByParentId")
    List<JSONObject> getProvinceByParentId(String parentId);
}
